package com.scores.mapper;

import com.scores.pojo.Student;
import com.scores.pojo.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SubjectMapper {
    List<Subject> getAllSubjectByPage(@Param("s") Subject subject, @Param("page") Integer page, @Param("pageSize") Integer pageSize);

    int getAllSubjectCount(@Param("s") Subject subject);

    List<Subject> getAllSubject(@Param("s") Subject subject);

    int addSubject(List<Subject> subjects);

    int updateSubject(Subject subject);

    int deleteSubject(List<String> subjectId);

    int deleteSubjectByNo(@Param("s") Subject subject);

    Subject getSubjectByNo(@Param("subjectId") int subjectId);
}
